export const options = {
  code1: '<p><b1>map.</b1><b3>drawTracks</b3><b4>(</b4><b3>options</b3><b4>)</b4>;</p>',
  code2: '<p><b1>map.</b1><b3>removeTracks</b3><b4>(</b4><b3>{ id: 图层ID, list: [id, ...] }</b3><b4>)</b4>;</p>',
  options1: [
    {
      name: "id",
      type: "String",
      default: '',
      desc: "图层ID",
    },
    {
      name: "list",
      type: "Array",
      default: '',
      desc: "轨迹的集合，[ [ {lon, lat, ...}, {} ], ...]",
    },
    {
      name: "lineStyle",
      type: "Object",
      default: '',
      desc: "线条样式，详见 LineStyle 表",
    },
    {
      name: "arrowStyle",
      type: "Object",
      default: '',
      desc: "箭头样式，详见 ArrowStyle 表",
    },
    {
      name: "circleStyle",
      type: "Object",
      default: '',
      desc: "轨迹点样式，详见 CircleStyle 表",
    },
  ],
  LineStyle: [
    {
      name: "color",
      type: "String",
      default: '#9C32B6',
      desc: "轨迹线条颜色",
    },
    {
      name: "width",
      type: "Number",
      default: 3,
      desc: "轨迹线条宽度",
    },
    {
      name: "dasharray",
      type: "Array",
      default: '[1, 0]',
      desc: "线条虚实集合，数组中的数字表示线段和间隔的长度，例如[2, 2]",
    },
  ],
  ArrowStyle: [
    {
      name: "size",
      type: "Number",
      default: 1,
      desc: "箭头图标大小",
    },
    {
      name: "color",
      type: "String",
      default: '#9C32B6',
      desc: "箭头图标颜色",
    },
  ],
  CircleStyle: [
    {
      name: "radius",
      type: "Number",
      default: 3,
      desc: "轨迹点大小",
    },
    {
      name: "color",
      type: "String",
      default: '#FFFFFF',
      desc: "轨迹点颜色",
    },
    {
      name: "opacity",
      type: "Number",
      default: 0.7,
      desc: "轨迹点透明度",
    },
    {
      name: "strokeWidth",
      type: "Number",
      default: 2,
      desc: "轨迹点边框宽度",
    },
    {
      name: "strokeColor",
      type: "String",
      default: '#9C32B6',
      desc: "轨迹点边框颜色",
    },
  ],
}